package main.chapter2

fun getWorld(): String {
    return "Hello,World"
}

//运行时常量
val FINAL_HELLO_WORLD: String = getWorld()
//变量
var helloChina: String = "Hello,World"
//其实kotlin有类型推测，关注变量or常量即可
//编译期常量
const val FINAL_HELLO_CHINA = "Hello,China"

fun main() {
    helloChina = "Hello,China"
    println(FINAL_HELLO_WORLD)
    println(FINAL_HELLO_CHINA)
    print(helloChina)
}
